﻿#pragma once

#include <iostream>
#include <iomanip>
#include <Windows.h>
#include <map>
#include "simpleStruct.h"
#include "Page.h"
using namespace std;

class MapPage :public Page {
public:
	MapPage(ROOM_NUMBER position = QING);
	void drawPage(Hero& hero);
	void updatePage(Hero& hero);
	void controlPage(Hero& hero);
	bool isquitPage(Hero& hero);
	int get_position() const;

private:
	void loadPage();
	bool isQuit;
	ROOM_NUMBER position;
	string roomName[6] = { "清水镇","落日峡谷","拜月教","紫光阁","峦月镜","神隐之地" };
	map<int, char> heroPositon;

};